<?php

namespace app\api\controller;
use app\common\model\WxnoticeTemplate;
/**
 * 默认控制器
 * Class Index
 * @package app\api\controller
 */
class Index extends Controller
{
    public function index()
    {
        echo '当前访问的index.php，请将index.html设为默认站点入口';
    }
    //前端调用的全局action
    public function global()
    {
        //微信消息订阅模板id
        $wx_template = WxnoticeTemplate::wxMessageTemplate();
        return $this->renderSuccess(compact('wx_template'));
    }
}